package business.report.impl;

import business.report.PoliceEngraveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.PoliceEngrave;
import report.domain.PoliceEngraveCriteria;
import report.mapper.PoliceEngraveMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/13.
 */
@Service(value = "policeEngraveService")
public class PoliceEngraveServiceImpl implements PoliceEngraveService {

    @Autowired
    public PoliceEngraveMapper policeEngraveMapper;

    @Override
    public List<PoliceEngrave> selectAllPoliceEngrave() {
        PoliceEngraveCriteria criteria = new PoliceEngraveCriteria();
        criteria.createCriteria().getAllCriteria();
        return policeEngraveMapper.selectByExample(criteria);
    }
}
